package com.sohoometer.station.services;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nari.coreframe.service.GenericServiceImpl;
import com.nari.platform.model.PageCond;
import com.nari.platform.model.ResultWithPageCond;
import com.sohoometer.station.bean.PowerMeterData;
import com.sohoometer.station.bean.PowerMeterInfo;
import com.sohoometer.station.dao.PowerMeterDataDao;

@Service("powerMeterDataService")
public class PowerMeterDataServiceImpl extends
		GenericServiceImpl<PowerMeterData, String> implements PowerMeterDataService {
	@Autowired
	private PowerMeterDataDao powerMeterDataDao;
	@Autowired
	public PowerMeterDataServiceImpl(PowerMeterDataDao powerMeterDataDao) {
		setiGenericDao(powerMeterDataDao);
		this.powerMeterDataDao = powerMeterDataDao;
	}
	@Override
	public ResultWithPageCond<PowerMeterData> queryPowerMeterDatas(
			String meterNo, List<PowerMeterInfo> meters,
			Date startQueryTime, Date endQueryTime,PageCond pageCond) throws Exception {
		return powerMeterDataDao.queryPowerMeterDatas(meterNo,meters,startQueryTime,endQueryTime,pageCond);
	}
}
